/* 米拓企业建站系统 Copyright (C) 长沙米拓信息技术有限公司 (https://www.metinfo.cn). All rights reserved. */
;(function() {
  var that = $.extend(true, {}, admin_module);
  function fetch(that,norefresh) {
    M.ajax(
      {
        url: that.own_name + '&c=admin_set&a=doGetemailSetup'
      },
      function(result) {
        let data = result.data
        Object.keys(data).map(item => {
          $(`[name=${item}]`).val(data[item])
        })
        !norefresh && that.obj.metCommon()
      }
    )
  }
  fetch(that)
  TEMPLOADFUNS[that.hash] = function() {
    fetch(that);
  }
})();